package com.xczz.exception;

public class BusinessException extends RuntimeException {
    private int code; // 业务状态码
    private String message; // 错误信息

    // 构造方法
    public BusinessException(int code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    // Getter 方法
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}